package com.xuecheng.search.service;

import com.xuecheng.api.search.model.dto.CoursePubIndexDTO;
import com.xuecheng.api.search.model.qo.QueryCoursePubIndexModel;
import com.xuecheng.common.domain.page.PageRequestParams;
import com.xuecheng.common.domain.page.PageVO;
import com.xuecheng.common.domain.response.RestResponse;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 课程搜索服务层
 */
public interface CoursePubSearchService {

    /**
     * 根据条件分页查询
     *
     * @param params
     * @param model
     * @return
     */
    PageVO<CoursePubIndexDTO> queryCoursePubIndexList(PageRequestParams params, QueryCoursePubIndexModel model);

    /**
     * 根据Id获得课程发布信息
     *
     * @param coursePubId
     * @return
     */
    CoursePubIndexDTO getCoursePubIndexById(Long coursePubId);

    /**
     * 根据Id获得课程发布信息--远程调用
     *
     * @param coursePubId
     * @return
     */
    RestResponse<CoursePubIndexDTO> getCoursePubIndexById4s(Long coursePubId);
}
